import { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'official',
    meta: {
      title: '首页',
    },
    component: () => import('@/views/official.vue'),
  },
  {
    path: '/login',
    name: 'login',
    meta: {
      title: '登录页',
    },
    component: () => import('@/views/login.vue'),
  },
  {
    // 将匹配所有内容并将其放在 `$route.params.notFound` 下
    path: '/:notFound(.*)*',
    name: 'notFound',
    component: () => import('@/views/errors/404.vue'),
  },
];

export default routes;
